#include <stdio.h>

int main() {
    int arr[10];
    int n = 0;
    while (n < 10) {
        scanf_s("%d", &arr[n]);
        n++;
    }
    n = 9;
    while (n >= 0) {
        printf("%d ", arr[n]);
        n--;
    }

}
